Three apps going through apache. How to configure apache httpd? [migrated]
Posted
by
Chris F.
on Pro Webmasters
See other posts from Pro Webmasters
or by Chris F.
Published on 2012-10-27T13:46:04Z
Indexed on
2012/10/27
17:17 UTC
Read the original article
Hit count: 375
apache
|httpd.conf
I have a quick question but I've been struggling to find the best solution:
I have two java webapps and wordpress (php) that I need to serve through my Prod website:
- App #1 should be accessed when pointing to www.example.com/ (this would have other url too such as "www.example.com/book")
- App #2 should be accessed when pointing to www.example.com/manage
- Finally WordPress would be accessed at www.example.com/info
How can I configure apache to serve all these three instances at the same time?
So far I have and it's not quite working right. Any suggestions would be much appreciated!
Listen 8081
<VirtualHost *:8081>
DocumentRoot /var/www/html
</VirtualHost>
ProxyPass /manage http://127.0.0.1:8080/manage
ProxyPassReverse /manage http://127.0.0.1:8080/manage
ProxyPass /info http://127.0.0.1:8081/info
ProxyPassReverse /info http://127.0.0.1:8081/info
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
© Pro Webmasters or respective owner